package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 清单详情对象 tb_product
 * 
 * @author 段奇乐
 * @date 2024-11-26
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id，自增 */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品上传图片路径 */
    @Excel(name = "商品图片", cellType = Excel.ColumnType.IMAGE, width = 10, height = 55)
    private String productImage;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Double buyCount;

    /** 关联单位id */
    @Excel(name = "单位", dictType = "product_unit")
    private Long unitId;

    /** 是否已购买，0：未购买，1：已购买 */
    @Excel(name = "完成状态", dictType = "product_status")
    private Integer status;

    /** 关联清单id */
    private Long shopListId;

    /** 清单名称 */
    @Excel(name = "所属清单")
    private String listName;

    /** 商品所属用户id */
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductImage(String productImage) 
    {
        this.productImage = productImage;
    }

    public String getProductImage() 
    {
        return productImage;
    }
    public void setBuyCount(Double buyCount)
    {
        this.buyCount = buyCount;
    }

    public Double getBuyCount()
    {
        return buyCount;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setShopListId(Long shopListId)
    {
        this.shopListId = shopListId;
    }

    public Long getShopListId() 
    {
        return shopListId;
    }

    public String getListName() {
        return listName;
    }

    public void setListName(String listName) {
        this.listName = listName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productImage", getProductImage())
            .append("buyCount", getBuyCount())
            .append("unitId", getUnitId())
            .append("status", getStatus())
            .append("shopListId", getShopListId())
            .append("listName", getListName())
            .toString();
    }
}
